#include "OptPriceCheck.h"

//#include <iostream>
//using namespace std;
int main()
{
	OptPriceCheck* opc = new OptPriceCheck();
	string xmlStr = "opt_price_check.xml";
	opc->ReadXmlFile(xmlStr);
	cout<< "1: "<< opc->CheckPrice("CF",30,3) << endl;
	cout<< "2: "<< opc->CheckPrice("CF",50,4) << endl;
	cout<< "3: "<< opc->CheckPrice("CF",130,8) << endl;
	cout<< "4: "<< opc->CheckPrice("CF",230,23) << endl;
	cout<< "5: "<< opc->CheckPrice("CF",310,30) << endl;
	cout<< "5: "<< opc->CheckPrice("CF",620,40) << endl;
	cout<< "5: "<< opc->CheckPrice("CF",620,60) << endl;
	delete opc;
	return 0;
}